<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>AdminLTE | factory management</title>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <!-- bootstrap 3.0.2 -->
        <link href="../css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <!-- font Awesome -->
        <link href="../css/font-awesome.min.css" rel="stylesheet" type="text/css" />
        <!-- Ionicons -->
        <link href="../css/ionicons.min.css" rel="stylesheet" type="text/css" />
        <!-- fullCalendar -->
        <link href="../css/fullcalendar/fullcalendar.css" rel="stylesheet" type="text/css" />
        <link href="../css/fullcalendar/fullcalendar.print.css" rel="stylesheet" type="text/css" media='print' />
        <!-- Theme style -->
        <link href="../css/AdminLTE.css" rel="stylesheet" type="text/css" />

        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->
    	<style type="text/css">
    		.clothes-style{
    			overflow: hidden;
    		}
    		.clothes-style div{
    			border: 1px solid black;
    			float: left;
    			margin-right: 5px;
    			margin-top: 5px;
    			padding: 10px;
    		}
    		.factory-number{
    			overflow: hidden;
    		}
    		.factory-number div{
    			float: left;
    			margin-right: 30px;
    		}
    		.sub{
    			padding: 30px;
    			border: 1px solid #ccc;
    			width: 18%;
    		}
    		.special{
    			border: 1px solid black;
    		}
    		.table{
    			border: 1px solid black;
    		}
    		.blackMask{
    			position: absolute;
    			width: 100%;
    			height: 100%;
    			opacity: 0.4;
    			z-index: 2;
    		}
    		.masking{
    			position: absolute;
    			top: 50%;
    			left: 50%;
    			z-index: 3;
    			background: #FFFFFF;
    			width: 300px;
    			height: 200px;
    			margin-left: -150px;
    			margin-top: -100px;
    			text-align: center;
    		}
    		.masking-content{
    			margin-top: 10%;
    		}
    		.masking img{
    			width: 50px;
    			height: 50px;
    		}
    		.masking-content a{
    			display: inline-block;
    			border: 1px solid black;
    			padding: 5px 20px;
    			color: black;
    			margin-top: 20px;
    		}
    		.masking-text{
    			margin-top: 20px;
    		}
    		.delete{
    			position: absolute;
    			top: 5px;
    			right: 10px;
    			cursor: pointer;
    		}
    	</style>
    </head>
    <body class="skin-blue">
    	<img class="blackMask" src="../img/mask.jpg"/>
    	<div class="masking">
    		<div class="delete">x</div>
    		<div class="masking-content">
    			<img src="../img/success.png"/>
	    		<div class="masking-text">恭喜，新建工厂成功</div>
	    		<a class="know" href="#">知道了</a>	
    		</div>
    		
    	</div>
        <!-- header logo: style can be found in header.less -->
        <header class="header">
            <a href="http://192.168.249.1:8050/AdminLTE-master1/index.html" class="logo">
                <!-- Add the class icon to your logo image or logo icon to add the margining -->
                集合智造
            </a>
            <!-- Header Navbar: style can be found in header.less -->
            <nav class="navbar navbar-static-top" role="navigation">
                <!-- Sidebar toggle button-->
                
                <div class="navbar-right">
                    <ul class="nav navbar-nav">
                        <!-- Messages: style can be found in dropdown.less-->
                        <li class="dropdown messages-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                          设置      
                                
                            </a>
                            <ul class="dropdown-menu">
                                <li class="header">You have 4 messages</li>
                                <li>
                                    <!-- inner menu: contains the actual data -->
                                    <div class="slimScrollDiv" style="position: relative; overflow: hidden; width: auto; height: 200px;"><ul class="menu" style="overflow: hidden; width: 100%; height: 200px;">
                                        <li><!-- start message -->
                                            <a href="#">
                                                <div class="pull-left">
                                                    <img src="AdminLTE%20_%20Dashboard_files/avatar3.png" class="img-circle" alt="User Image">
                                                </div>
                                                <h4>
                                                    Support Team
                                                    <small><i class="fa fa-clock-o"></i> 5 mins</small>
                                                </h4>
                                                <p>Why not buy a new awesome theme?</p>
                                            </a>
                                        </li><!-- end message -->
                                        <li>
                                            <a href="#">
                                                <div class="pull-left">
                                                    <img src="AdminLTE%20_%20Dashboard_files/avatar2.png" class="img-circle" alt="user image">
                                                </div>
                                                <h4>
                                                    AdminLTE Design Team
                                                    <small><i class="fa fa-clock-o"></i> 2 hours</small>
                                                </h4>
                                                <p>Why not buy a new awesome theme?</p>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <div class="pull-left">
                                                    <img src="AdminLTE%20_%20Dashboard_files/avatar.png" class="img-circle" alt="user image">
                                                </div>
                                                <h4>
                                                    Developers
                                                    <small><i class="fa fa-clock-o"></i> Today</small>
                                                </h4>
                                                <p>Why not buy a new awesome theme?</p>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <div class="pull-left">
                                                    <img src="AdminLTE%20_%20Dashboard_files/avatar2.png" class="img-circle" alt="user image">
                                                </div>
                                                <h4>
                                                    Sales Department
                                                    <small><i class="fa fa-clock-o"></i> Yesterday</small>
                                                </h4>
                                                <p>Why not buy a new awesome theme?</p>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <div class="pull-left">
                                                    <img src="AdminLTE%20_%20Dashboard_files/avatar.png" class="img-circle" alt="user image">
                                                </div>
                                                <h4>
                                                    Reviewers
                                                    <small><i class="fa fa-clock-o"></i> 2 days</small>
                                                </h4>
                                                <p>Why not buy a new awesome theme?</p>
                                            </a>
                                        </li>
                                    </ul><div class="slimScrollBar" style="background: rgb(0, 0, 0) none repeat scroll 0% 0%; width: 3px; position: absolute; top: 0px; opacity: 0.4; display: none; border-radius: 0px; z-index: 99; right: 1px;"></div><div class="slimScrollRail" style="width: 3px; height: 100%; position: absolute; top: 0px; display: none; border-radius: 0px; background: rgb(51, 51, 51) none repeat scroll 0% 0%; opacity: 0.2; z-index: 90; right: 1px;"></div></div>
                                </li>
                                <li class="footer"><a href="#">See All Messages</a></li>
                            </ul>
                        </li>
                        <!-- Notifications: style can be found in dropdown.less -->
                        <li class="dropdown notifications-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                
                           姓名     
                            </a>
                            <ul class="dropdown-menu">
                                <li class="header">You have 10 notifications</li>
                                <li>
                                    <!-- inner menu: contains the actual data -->
                                    <div class="slimScrollDiv" style="position: relative; overflow: hidden; width: auto; height: 200px;"><ul class="menu" style="overflow: hidden; width: 100%; height: 200px;">
                                        <li>
                                            <a href="#">
                                                <i class="ion ion-ios7-people info"></i> 5 new members joined today
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <i class="fa fa-warning danger"></i> Very long description here that may not fit into the page and may cause design problems
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <i class="fa fa-users warning"></i> 5 new members joined
                                            </a>
                                        </li>

                                        <li>
                                            <a href="#">
                                                <i class="ion ion-ios7-cart success"></i> 25 sales made
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <i class="ion ion-ios7-person danger"></i> You changed your username
                                            </a>
                                        </li>
                                    </ul><div class="slimScrollBar" style="background: rgb(0, 0, 0) none repeat scroll 0% 0%; width: 3px; position: absolute; top: 0px; opacity: 0.4; display: none; border-radius: 0px; z-index: 99; right: 1px;"></div><div class="slimScrollRail" style="width: 3px; height: 100%; position: absolute; top: 0px; display: none; border-radius: 0px; background: rgb(51, 51, 51) none repeat scroll 0% 0%; opacity: 0.2; z-index: 90; right: 1px;"></div></div>
                                </li>
                                <li class="footer"><a href="#">View all</a></li>
                            </ul>
                        </li>
                        <!-- Tasks: style can be found in dropdown.less -->
                        
                        <!-- User Account: style can be found in dropdown.less -->
                        <li class="dropdown user user-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="glyphicon glyphicon-user"></i>
                                <span>Jane Doe <i class="caret"></i></span>
                            </a>
                            <ul class="dropdown-menu">
                                <!-- User image -->
                                <li class="user-header bg-light-blue">
                                    <img src="AdminLTE%20_%20Dashboard_files/avatar3.png" class="img-circle" alt="User Image">
                                    <p>
                                        Jane Doe - Web Developer
                                        <small>Member since Nov. 2012</small>
                                    </p>
                                </li>
                                <!-- Menu Body -->
                                <li class="user-body">
                                    <div class="col-xs-4 text-center">
                                        <a href="#">Followers</a>
                                    </div>
                                    <div class="col-xs-4 text-center">
                                        <a href="#">Sales</a>
                                    </div>
                                    <div class="col-xs-4 text-center">
                                        <a href="#">Friends</a>
                                    </div>
                                </li>
                                <!-- Menu Footer-->
                                <li class="user-footer">
                                    <div class="pull-left">
                                        <a href="#" class="btn btn-default btn-flat">Profile</a>
                                    </div>
                                    <div class="pull-right">
                                        <a href="#" class="btn btn-default btn-flat">Sign out</a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </nav>
        </header>
        <div class="wrapper row-offcanvas row-offcanvas-left">
            <!-- Left side column. contains the logo and sidebar -->
            <aside class="left-side sidebar-offcanvas">
                <!-- sidebar: style can be found in sidebar.less -->
                <section class="sidebar">
                    <!-- sidebar menu: : style can be found in sidebar.less -->
                    <ul class="sidebar-menu">
                        <li>
                            <a href="../index.html">
                                <i class="fa fa-dashboard"></i> <span>工作台</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        <li>
                            <a href="widgets.html">
                                <i class="fa fa-th"></i> <span>设计订单</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-bar-chart-o"></i>
                                <span>打样订单</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                            <!--<ul class="treeview-menu">
                                <li><a href="charts/morris.html"><i class="fa fa-angle-double-right"></i> Morris</a></li>
                                <li><a href="charts/flot.html"><i class="fa fa-angle-double-right"></i> Flot</a></li>
                                <li><a href="charts/inline.html"><i class="fa fa-angle-double-right"></i> Inline charts</a></li>
                            </ul>-->
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-laptop"></i>
                                <span>大货订单</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                            <!--<ul class="treeview-menu">
                                <li><a href="UI/general.html"><i class="fa fa-angle-double-right"></i> General</a></li>
                                <li><a href="UI/icons.html"><i class="fa fa-angle-double-right"></i> Icons</a></li>
                                <li><a href="UI/buttons.html"><i class="fa fa-angle-double-right"></i> Buttons</a></li>
                                <li><a href="UI/sliders.html"><i class="fa fa-angle-double-right"></i> Sliders</a></li>
                                <li><a href="UI/timeline.html"><i class="fa fa-angle-double-right"></i> Timeline</a></li>
                            </ul>-->
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-edit"></i> <span>历史订单</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                            <!--<ul class="treeview-menu">
                                <li><a href="forms/general.html"><i class="fa fa-angle-double-right"></i> General Elements</a></li>
                                <li><a href="forms/advanced.html"><i class="fa fa-angle-double-right"></i> Advanced Elements</a></li>
                                <li><a href="forms/editors.html"><i class="fa fa-angle-double-right"></i> Editors</a></li>
                            </ul>-->
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-table"></i> <span>客户管理</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="tables/customer management.html"><i class="fa fa-angle-double-right"></i>客户管理</a></li>
                                <li><a href="tables/new customer.html"><i class="fa fa-angle-double-right"></i>新增客户</a></li>
                            </ul>
                        </li>
                        <li class="active">
                            <a href="calendar.html">
                                <i class="fa fa-calendar"></i> <span>工厂管理</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        <li>
                            <a href="mailbox.html">
                                <i class="fa fa-envelope"></i> <span>设计库</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-folder"></i> <span>面料库</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                            <!--<ul class="treeview-menu">
                                <li><a href="examples/invoice.html"><i class="fa fa-angle-double-right"></i> Invoice</a></li>
                                <li><a href="examples/login.html"><i class="fa fa-angle-double-right"></i> Login</a></li>
                                <li><a href="examples/register.html"><i class="fa fa-angle-double-right"></i> Register</a></li>
                                <li><a href="examples/lockscreen.html"><i class="fa fa-angle-double-right"></i> Lockscreen</a></li>
                                <li><a href="examples/404.html"><i class="fa fa-angle-double-right"></i> 404 Error</a></li>
                                <li><a href="examples/500.html"><i class="fa fa-angle-double-right"></i> 500 Error</a></li>
                                <li><a href="examples/blank.html"><i class="fa fa-angle-double-right"></i> Blank Page</a></li>
                            </ul>-->
                        </li>
                    </ul>
                </section>
                <!-- /.sidebar -->
            </aside>

            <!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side">
                <!-- Main content -->
                <section class="content" >
                    <div class="row">
                        <div class="col-md-12">
                            <div class="box" style="padding: 10px;">
                                <div class="box-header">
									<span style="font-weight: bold; font-size: 20px;">新增工厂</span>
									<span style="float: right;">
	                        			<a href="#">工厂管理</a>
	                        			<i>&gt;</i>
	                        			<a href="#">新建工厂</a>
	                        		</span>
									<div class="clear" style="clear: both;"></div>
                                </div><!-- /.box-header -->
                                <div class="box-title">
                                	<table class="table">
                                    	<tr>
                                    		<td style="border: 0;">工厂名称</td>
                                    		<td style="border: 0;" colspan="5">
                                    			<select>
                                    				<option></option>
                                    			</select>
                                    		</td>
                                    	</tr>
                                    	<tr>
                                    		<td style="border: 0;">工厂地址</span></td>
                                    		<td style="border: 0;" colspan="5">
                                    			<div style="overflow: hidden;">
													<div style="float: left; margin-right: 5px;">
														<select>
															<option value="浙江省">浙江省</option>
															<option value="江苏省">江苏省</option>
															<option value="广东省">广东省</option>
															<option value="广西省">广西省</option>
														</select>
													</div>
													<div style="float: left; margin-right: 5px;">
														<select>
															<option value="杭州市">杭州市</option>
															<option value="上海市">上海市</option>
															<option value="南京市">南京市</option>
															<option value="北京市">北京市</option>
														</select>
													</div>
													<div style="float: left;">
														<select>
															<option value="西湖区">西湖区</option>
															<option value="余杭区">余杭区</option>
															<option value="江干区">江干区</option>
															<option value="拱墅区">拱墅区</option>
															<option value="上城区">上城区</option>
															<option value="下城区">下城区</option>
															<option value="滨江区">滨江区</option>
															<option value="萧山区">萧山区</option>
															<option value="临安区">临安区</option>
														</select>
													</div>
												</div>
												<div>
													<input class="address special" type="text" placeholder="填写详细地址" />
												</div>
                                    		</td>
                                    	</tr>
                                    	<tr>
                                    		<td style="border: 0;">联系人</td>
                                    		<td style="border: 0;">
                                    			<input class="special" type="text" value="2016/10/12" />
                                    		</td>
                                    		<td style="border: 0;">联系电话</td>
                                    		<td style="border: 0;" colspan="3">
                                    			<input class="special" type="text" />
                                    		</td>
                                    	</tr>
                                    	<tr>
                                    		<td style="border: 0;">工厂人数</td>
                                    		<td style="border: 0;">
                                				<label>
                                					<input type="checkbox" />50人以下
                                				</label>
                                    		</td>
                                    		<td style="border: 0;">
                                				<label>
                                					<input type="checkbox" />50~100人
                                				</label>
                                    		</td>
                                    		<td style="border: 0;">
                                				<label>
                                					<input type="checkbox" />100~200人
                                				</label>
                                    		</td>
                                    		<td style="border: 0;">
                                				<label>
                                					<input type="checkbox" />200人以上
                                				</label>
                                    		</td>
                                    	</tr>
                                    	<tr>
                                    		<td style="border: 0;">梳织类型</td>
                                    		<td style="border: 0;">
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />羽绒服
                                    				</label>
                                    			</div>
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />短裙
                                    				</label>
                                    			</div>
                                    		</td>
                                    		<td style="border: 0;">
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />夹克
                                    				</label>
                                    			</div>
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />裤子
                                    				</label>
                                    			</div>
                                    		</td>
                                    		<td style="border: 0;">
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />外套
                                    				</label>
                                    			</div>
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />衬衣
                                    				</label>
                                    			</div>
                                    		</td>
                                    		<td style="border: 0;">
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />呢大衣
                                    				</label>
                                    			</div>
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />登山服
                                    				</label>
                                    			</div>
                                    		</td>
                                    		<td style="border: 0;">
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />连衣裙
                                    				</label>
                                    			</div>
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />防水服
                                    				</label>
                                    			</div>
                                    		</td>
                                    	</tr>
                                    	<tr>
                                    		<td style="border: 0;">针织类型</td>
                                    		<td style="border: 0;">
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />外套
                                    				</label>
                                    			</div>
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />连衣裙
                                    				</label>
                                    			</div>
                                    		</td>
                                    		<td style="border: 0;">
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />裤子
                                    				</label>
                                    			</div>
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />短裙
                                    				</label>
                                    			</div>
                                    		</td>
                                    		<td style="border: 0;">
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />睡衣
                                    				</label>
                                    			</div>
                                    		</td>
                                    		<td style="border: 0;">
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />T恤
                                    				</label>
                                    			</div>
                                    		</td>
                                    		<td style="border: 0;">
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />Polo衫
                                    				</label>
                                    			</div>
                                    		</td>
                                    	</tr>
                                    	<tr>
                                    		<td style="border: 0;">毛衣类型</td>
                                    		<td style="border: 0;">
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />外套
                                    				</label>
                                    			</div>
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />短裙
                                    				</label>
                                    			</div>
                                    		</td>
                                    		<td style="border: 0;">
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />开衫
                                    				</label>
                                    			</div>
                                    		</td>
                                    		<td style="border: 0;">
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />圆领
                                    				</label>
                                    			</div>
                                    		</td>
                                    		<td style="border: 0;">
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />V领
                                    				</label>
                                    			</div>
                                    		</td>
                                    		<td style="border: 0;">
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />连衣裙
                                    				</label>
                                    			</div>
                                    		</td>
                                    	</tr>
                                    	<tr>
                                    		<td style="border: 0;">销往目的地</td>
                                    		<td style="border: 0;" colspan="5">
                                    			<label>
                                    				<input type="checkbox" />内销
                                    			</label>
                                    			<label>
                                    				<input type="checkbox" />外销
                                    			</label>
                                    		</td>
                                    	</tr>
                                    	<tr>
                                    		<td style="border: 0;">合作条件</td>
                                    		<td style="border: 0;">
                                    			<label>
                                    				<input type="checkbox" />20件以下
                                    			</label>
                                    		</td>
                                    		<td style="border: 0;"> 
                                    			<label>
                                    				<input type="checkbox" />20~50件
                                    			</label>
                                    		</td>
                                    		<td style="border: 0;">
                                    			<label>
                                    				<input type="checkbox" />50~100件
                                    			</label>
                                    		</td>
                                    		<td style="border: 0;">
                                    			<label>
                                    				<input type="checkbox" />100~300件
                                    			</label>
                                    		</td>
                                    		<td style="border: 0;">
                                    			<label>
                                    				<input type="checkbox" />300件以上
                                    			</label>
                                    		</td>
                                    	</tr>
                                    	<tr>
                                    		<td style="border: 0;">工厂评估</td>
                                    		<td style="border: 0;" colspan="5">
                                    			<div>
                                    				<label>
                                    					<input type="checkbox" />是
                                    				</label>
                                    				<lable>
                                    					<input type="checkbox" />否
                                    				</lable>
                                    			</div>
                                    		</td>
                                    	</tr>
                                   </table>
                                   	<div style="margin-bottom: 50px;">
				                		<button type="button" class="btn btn-primary">确定新建</button>
					                	<button type="button" class="btn btn-default">放弃新建</button>
					                </div>
                                </div>
                                
                                
                                <!--<div class="box-footer clearfix">
                                    <ul class="pagination pagination-sm no-margin pull-right">
                                        <li><a href="#">&laquo;</a></li>
                                        <li><a href="#">1</a></li>
                                        <li><a href="#">2</a></li>
                                        <li><a href="#">3</a></li>
                                        <li><a href="#">&raquo;</a></li>
                                    </ul>
                                </div>-->
                                
                            </div><!-- /.box -->

                            
                        </div><!-- /.col -->
                        
                    </div><!-- /.row -->
                    
                </section><!-- /.content -->
                
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->


        <!-- jQuery 2.0.2 -->
        <script src="../js/jquery.min.js"></script>
        <!-- jQuery UI 1.10.3 -->
        <script src="../js/jquery-ui-1.10.3.min.js" type="text/javascript"></script>
        <!-- Bootstrap -->
        <script src="../js/bootstrap.min.js" type="text/javascript"></script>
        <!-- AdminLTE App -->
        <script src="../js/AdminLTE/app.js" type="text/javascript"></script>
        <!-- AdminLTE for demo purposes -->       
        <!-- fullCalendar -->
        <script src="../js/plugins/fullcalendar/fullcalendar.min.js" type="text/javascript"></script>
        <!-- Page specific script -->
        <script type="text/javascript">
            $(function() {

                /* initialize the external events
                 -----------------------------------------------------------------*/
                function ini_events(ele) {
                    ele.each(function() {

                        // create an Event Object (http://arshaw.com/fullcalendar/docs/event_data/Event_Object/)
                        // it doesn't need to have a start or end
                        var eventObject = {
                            title: $.trim($(this).text()) // use the element's text as the event title
                        };

                        // store the Event Object in the DOM element so we can get to it later
                        $(this).data('eventObject', eventObject);

                        // make the event draggable using jQuery UI
                        $(this).draggable({
                            zIndex: 1070,
                            revert: true, // will cause the event to go back to its
                            revertDuration: 0  //  original position after the drag
                        });

                    });
                }
                ini_events($('#external-events div.external-event'));

                /* initialize the calendar
                 -----------------------------------------------------------------*/
                //Date for the calendar events (dummy data)
                var date = new Date();
                var d = date.getDate(),
                        m = date.getMonth(),
                        y = date.getFullYear();
                $('#calendar').fullCalendar({
                    header: {
                        left: 'prev,next today',
                        center: 'title',
                        right: 'month,agendaWeek,agendaDay'
                    },
                    buttonText: {//This is to add icons to the visible buttons
                        prev: "<span class='fa fa-caret-left'></span>",
                        next: "<span class='fa fa-caret-right'></span>",
                        today: 'today',
                        month: 'month',
                        week: 'week',
                        day: 'day'
                    },
                    //Random default events
                    events: [
                        {
                            title: 'All Day Event',
                            start: new Date(y, m, 1),
                            backgroundColor: "#f56954", //red
                            borderColor: "#f56954" //red
                        },
                        {
                            title: 'Long Event',
                            start: new Date(y, m, d - 5),
                            end: new Date(y, m, d - 2),
                            backgroundColor: "#f39c12", //yellow
                            borderColor: "#f39c12" //yellow
                        },
                        {
                            title: 'Meeting',
                            start: new Date(y, m, d, 10, 30),
                            allDay: false,
                            backgroundColor: "#0073b7", //Blue
                            borderColor: "#0073b7" //Blue
                        },
                        {
                            title: 'Lunch',
                            start: new Date(y, m, d, 12, 0),
                            end: new Date(y, m, d, 14, 0),
                            allDay: false,
                            backgroundColor: "#00c0ef", //Info (aqua)
                            borderColor: "#00c0ef" //Info (aqua)
                        },
                        {
                            title: 'Birthday Party',
                            start: new Date(y, m, d + 1, 19, 0),
                            end: new Date(y, m, d + 1, 22, 30),
                            allDay: false,
                            backgroundColor: "#00a65a", //Success (green)
                            borderColor: "#00a65a" //Success (green)
                        },
                        {
                            title: 'Click for Google',
                            start: new Date(y, m, 28),
                            end: new Date(y, m, 29),
                            url: 'http://google.com/',
                            backgroundColor: "#3c8dbc", //Primary (light-blue)
                            borderColor: "#3c8dbc" //Primary (light-blue)
                        }
                    ],
                    editable: true,
                    droppable: true, // this allows things to be dropped onto the calendar !!!
                    drop: function(date, allDay) { // this function is called when something is dropped

                        // retrieve the dropped element's stored Event Object
                        var originalEventObject = $(this).data('eventObject');

                        // we need to copy it, so that multiple events don't have a reference to the same object
                        var copiedEventObject = $.extend({}, originalEventObject);

                        // assign it the date that was reported
                        copiedEventObject.start = date;
                        copiedEventObject.allDay = allDay;
                        copiedEventObject.backgroundColor = $(this).css("background-color");
                        copiedEventObject.borderColor = $(this).css("border-color");

                        // render the event on the calendar
                        // the last `true` argument determines if the event "sticks" (http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/)
                        $('#calendar').fullCalendar('renderEvent', copiedEventObject, true);

                        // is the "remove after drop" checkbox checked?
                        if ($('#drop-remove').is(':checked')) {
                            // if so, remove the element from the "Draggable Events" list
                            $(this).remove();
                        }

                    }
                });

                /* ADDING EVENTS */
                var currColor = "#f56954"; //Red by default
                //Color chooser button
                var colorChooser = $("#color-chooser-btn");
                $("#color-chooser > li > a").click(function(e) {
                    e.preventDefault();
                    //Save color
                    currColor = $(this).css("color");
                    //Add color effect to button
                    colorChooser
                            .css({"background-color": currColor, "border-color": currColor})
                            .html($(this).text()+' <span class="caret"></span>');
                });
                $("#add-new-event").click(function(e) {
                    e.preventDefault();
                    //Get value and make sure it is not null
                    var val = $("#new-event").val();
                    if (val.length == 0) {
                        return;
                    }

                    //Create event
                    var event = $("<div />");
                    event.css({"background-color": currColor, "border-color": currColor, "color": "#fff"}).addClass("external-event");
                    event.html(val);
                    $('#external-events').prepend(event);

                    //Add draggable funtionality
                    ini_events(event);

                    //Remove event from text input
                    $("#new-event").val("");
                });
            });
            
            var deleteEle = document.getElementsByClassName('delete')[0];
            var blackMaskEle = document.getElementsByClassName('blackMask')[0];
            var maskingEle = document.getElementsByClassName('masking')[0];
            
            deleteEle.onclick = function () {
            	blackMaskEle.style.display = 'none';
            	maskingEle.style.display = 'none';
            	blackMaskEle.style.opacity = '0';
            	maskingEle.style.opacity = '0';
            }
        </script>

    </body>
</html>
